package com.xiaozhengkeji.xiaozhengblog.base.mapper;

import com.xiaozhengkeji.xiaozhengblog.base.entitys.ArticleDiscussEntity;
import java.time.LocalDateTime;
import java.util.List;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

@Mapper
public interface ArticleDiscussEntityMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(ArticleDiscussEntity record);

    int insertSelective(ArticleDiscussEntity record);

    ArticleDiscussEntity selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(ArticleDiscussEntity record);

    int updateByPrimaryKey(ArticleDiscussEntity record);

    List<ArticleDiscussEntity> queryByAll(ArticleDiscussEntity articleDiscussEntity);

    List<ArticleDiscussEntity> queryByAid(@Param("aid") Integer aid);

    List<ArticleDiscussEntity> queryByCommentUser(@Param("commentUser") String commentUser);
}